﻿@using RBS.Core.Extension
@model RBS.Core.Model.Siteconfig
@{
    ViewBag.Title = "SysConfig";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!--导航栏-->
<div class="location">
    <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
    <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <span>系统参数设置</span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div class="content-tab-wrap">
    <div id="floatHead" class="content-tab">
        <div class="content-tab-ul-wrap">
            <ul>
                <li><a href="javascript:;" onclick="tabs(this);" class="selected">网站基本信息</a></li> 
                <li><a href="javascript:;" onclick="tabs(this);">短信平台设置</a></li>
                <li><a href="javascript:;" onclick="tabs(this);">邮件发送设置</a></li>
                <li><a href="javascript:;" onclick="tabs(this);">文件上传设置</a></li>
            </ul>
        </div>
    </div>
</div>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <!--网站基本信息-->
    <div class="tab-content">
        <dl>
            <dt>网站名称</dt>
            <dd>
                
                @Html.TextBoxFor(model => model.webname, new { @class = "input normal", datatype = "*2-255", sucmsg = " " })
                <span class="Validform_checktip">*任意字符，控制在255个字符内</span>
            </dd>
        </dl>
        <dl>
            <dt>网站域名</dt>
            <dd>
                   @Html.TextBoxFor(model => model.weburl, new { @class = "input normal", datatype = "url", sucmsg = " " })
             
                <span class="Validform_checktip">*以“http://”开头，不能绑定到频道分类</span>
            </dd>
        </dl>
        <dl>
            <dt>网站LOGO</dt>
            <dd>
                
                 @Html.TextBoxFor(model => model.weblogo, new { @class = "input normal upload-path" })
             
                <div class="upload-box upload-img"></div>
            </dd>
        </dl>
        <dl>
            <dt>公司名称</dt>
            <dd>
                   @Html.TextBoxFor(model => model.webcompany, new { @class = "input normal " })
         
            </dd>
        </dl>
        <dl>
            <dt>通讯地址</dt>
            <dd>
                   @Html.TextBoxFor(model => model.webaddress, new { @class = "input normal " })
             
            </dd>
        </dl>
        <dl>
            <dt>联系电话</dt>
            <dd>
                   @Html.TextBoxFor(model => model.webtel, new { @class = "input normal " })
             
                <span class="Validform_checktip">*非必填，区号+电话号码</span>
            </dd>
        </dl>
        <dl>
            <dt>传真号码</dt>
            <dd>
                  @Html.TextBoxFor(model => model.webfax, new { @class = "input normal " })
             
                <span class="Validform_checktip">*非必填，区号+传真号码</span>
            </dd>
        </dl>
        <dl>
            <dt>管理员邮箱</dt>
            <dd>
                  @Html.TextBoxFor(model => model.webmail, new { @class = "input normal " })
               
            </dd>
        </dl>
        <dl>
            <dt>网站备案号</dt>
            <dd>
                   @Html.TextBoxFor(model => model.webcrod, new { @class = "input normal " })
             
            </dd>
        </dl>
        <dl>
            <dt>首页标题(SEO)</dt>
            <dd>
                  @Html.TextBoxFor(model => model.webtitle, new { @class = "input normal " })
              
                <span class="Validform_checktip">*自定义的首页标题</span>
            </dd>
        </dl>
        <dl>
            <dt>页面关健词(SEO)</dt>
            <dd>
                    @Html.TextBoxFor(model => model.webkeyword, new { @class = "input normal " })
              
                <span class="Validform_checktip">页面关键词(keyword)</span>
            </dd>
        </dl>
        <dl>
            <dt>页面描述(SEO)</dt>
            <dd>
                  @Html.TextBoxFor(model => model.webdescription, new { @class = "input normal " })
         
                <span class="Validform_checktip">页面描述(description)</span>
            </dd>
        </dl>
        <dl>
            <dt>网站版权信息</dt>
            <dd> 
                @Html.TextAreaFor(model => model.webcopyright, 5, 105, new { @class = "input" }) 
                <span class="Validform_checktip">支持HTML</span>
            </dd>
        </dl>
    </div>
    <!--/网站基本信息-->

    

    <!--手机短信设置-->
    <div class="tab-content" style="display: none">
        <dl>
            <dt>短信剩余数量</dt>
            <dd>
                <asp:label id="labSmsCount" runat="server" />
                <span class="Validform_checktip">尚未申请？<a href="http://sms.dtcms.net" target="_blank">请点击这里注册</a></span>
            </dd>
        </dl>
        <dl>
            <dt>平台登录账户</dt>
            <dd>
              
                  @Html.TextBoxFor(model => model.smsusername, new { @class = "input txt " })
                <span class="Validform_checktip">*短信平台注册的用户名</span>
            </dd>
        </dl>
        <dl>
            <dt>平台登录密码</dt>
            <dd>
                @Html.PasswordFor(model => model.smspassword, new { @class = "input txt " }) 
                <span class="Validform_checktip">*短信平台注册的密码</span>
            </dd>
        </dl>
        <dl>
            <dt>短信平台说明</dt>
            <dd>请不要使用系统默认账户test，因为它是公用的测试账号；<br />
                请在短信平台修改账户资料中绑定签名方可使用短信功能；<br />
                如果您尚未申请开通，<a href="http://sms.dtcms.net" target="_blank">请点击这里注册</a>成功后填写您的用户名和密码均可正常使用。
            </dd>
        </dl>
    </div>
    <!--/手机短信设置-->

    <!--邮件发送设置-->
    <div class="tab-content" style="display: none">
        <dl>
            <dt>SMTP服务器</dt>
            <dd>
                        @Html.TextBoxFor(model => model.emailsmtp, new { @class = "input normal ", datatype = "*0-100", sucmsg = " " })
              
                <span class="Validform_checktip">*发送邮件的SMTP服务器地址</span>
            </dd>
        </dl>
        <dl>
            <dt>SMTP端口</dt>
            <dd>
                  @Html.TextBoxFor(model => model.emailport, new { @class = "input small ", datatype = "n", sucmsg = " " })
            
                <span class="Validform_checktip">*SMTP服务器的端口，大部分服务商都支持25端口</span>
            </dd>
        </dl>
        <dl>
            <dt>发件人地址</dt>
            <dd>
                  @Html.TextBoxFor(model => model.emailfrom, new { @class = "input normal ", datatype = "e", sucmsg = " " })
            
                <span class="Validform_checktip">*发件人的邮箱地址</span>
            </dd>
        </dl>
        <dl>
            <dt>邮箱账号</dt>
            <dd>
                 @Html.TextBoxFor(model => model.emailusername, new { @class = "input normal ", datatype = "*0-100", sucmsg = " " })
           
                <span class="Validform_checktip">*</span>
            </dd>
        </dl>
        <dl>
            <dt>邮箱密码</dt>
            <dd>
                 @Html.PasswordFor(model => model.emailpassword, new { @class = "input normal ", datatype = "*0-100", sucmsg = " " }) 
 
                <span class="Validform_checktip">*</span>
            </dd>
        </dl>
        <dl>
            <dt>发件人昵称</dt>
            <dd>  @Html.TextBoxFor(model => model.emailnickname, new { @class = "input normal ", datatype = "*0-50", sucmsg = " " })
             
                <span class="Validform_checktip">*对方收到邮件时显示的昵称</span>
            </dd>
        </dl>
    </div>
    <!--/邮件发送设置-->

    <!--上传配置-->
    <div class="tab-content" style="display: none">
        <dl>
            <dt>文件上传目录</dt>
            <dd>
                 @Html.TextBoxFor(model => model.filepath, new { @class = "input txt ", datatype = "*2-100", sucmsg = " " })
              
                <span class="Validform_checktip">*文件保存的目录名，自动创建根目录下</span>
            </dd>
        </dl>
        <dl>
            <dt>文件保存方式</dt>
            <dd>
                <div class="rule-single-select">
                   
                     @Html.DropDownListFor(model => model.filesave, new[] { new SelectListItem() { Text = "按年月日每天一个目录", Value = "1" }, new SelectListItem() { Text = "按年月/日/存入不同目录", Value = "2" } }, new { datatype = "*", sucmsg = " " })
                    
                </div>
            </dd>
        </dl>
        <dl>
            <dt>文件上传类型</dt>
            <dd>
                 @Html.TextBoxFor(model => model.fileextension, new { @class = "input normal ", datatype = "*1-255", sucmsg = " " })
               
                <span class="Validform_checktip">*以英文的逗号分隔开，如：“zip,rar”</span>
            </dd>
        </dl>
        <dl>
            <dt>附件上传大小</dt>
            <dd>
                @Html.TextBoxFor(model => model.attachsize, new { @class = "input small ", datatype = "n", sucmsg = " " })KB
                <span class="Validform_checktip">*超过设定的文件大小不予上传，0不限制</span>
            </dd>
        </dl>
        <dl>
            <dt>图片上传大小</dt>
            <dd>
                @Html.TextBoxFor(model => model.imgsize, new { @class = "input small ", datatype = "n", sucmsg = " " }) 
                KB
                <span class="Validform_checktip">*超过设定的图片大小不予上传，0不限制</span>
            </dd>
        </dl>
        <dl>
            <dt>图片最大尺寸</dt>
            <dd>
                   @Html.TextBoxFor(model => model.imgmaxheight, new { @class = "input small ", datatype = "n", sucmsg = " " }) 
             
                ×   @Html.TextBoxFor(model => model.imgmaxwidth, new { @class = "input small ", datatype = "n", sucmsg = " " }) 
               
                px
                <span class="Validform_checktip">*左边高度，右边宽度，超出自动裁剪，0为不受限制</span>
            </dd>
        </dl>
        <dl>
            <dt>生成缩略图尺寸</dt>
            <dd>
                 @Html.TextBoxFor(model => model.thumbnailheight, new { @class = "input small ", datatype = "n", sucmsg = " " }) 
              
                × @Html.TextBoxFor(model => model.thumbnailwidth, new { @class = "input small ", datatype = "n", sucmsg = " " }) 
              
                px
                <span class="Validform_checktip">*左边高度，右边宽度，0为不生成缩略图</span>
            </dd>
        </dl>
        <dl>
            <dt>图片水印类型</dt>
            <dd>
                <div class="rule-multi-radio"> 
                   <label for="watermarktype">关闭水印</label>
                    @Html.RadioButtonFor(model => model.watermarktype, 0, new { @id = "radio1", @name = "rdolstState" }) 
                    <label for="watermarktype">文字水印</label>
                    @Html.RadioButtonFor(model => model.watermarktype, 1, new { @id = "radio2", @name = "rdolstState" })
                    <label for="watermarktype">图片水印</label>
                    @Html.RadioButtonFor(model => model.watermarktype, 2, new { @id = "radio3", @name = "rdolstState" })
                </div>
            </dd>
        </dl>
        <dl>
            <dt>图片水印位置</dt>
            <dd>
                <div class="rule-multi-radio">
                       <label for="watermarkposition">左上</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 1, new { @id = "radio1", @name = "watermarkposition" }) 
                       <label for="watermarkposition">中上</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 2, new { @id = "radio2", @name = "watermarkposition" }) 
                       <label for="watermarkposition">右上</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 3, new { @id = "radio3", @name = "watermarkposition" }) 
                       <label for="watermarkposition">左中</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 4, new { @id = "radio4", @name = "watermarkposition" }) 
                       <label for="watermarkposition">居中</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 5, new { @id = "radio5", @name = "watermarkposition" }) 
                       <label for="watermarkposition">右中</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 6, new { @id = "radio6", @name = "watermarkposition" }) 
                       <label for="watermarkposition">左下</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 7, new { @id = "radio7", @name = "watermarkposition" }) 
                       <label for="watermarkposition">中下</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 8, new { @id = "radio8", @name = "watermarkposition" }) 
                       <label for="watermarkposition">右下</label>
                    @Html.RadioButtonFor(model => model.watermarkposition, 0, new { @id = "radio9", @name = "watermarkposition" })  
                </div>
            </dd>
        </dl>
        <dl>
            <dt>图片生成质量</dt>
            <dd>
                    @Html.TextBoxFor(model => model.watermarkimgquality, new { @class = "input small ", datatype = "n", sucmsg = " " })  
                <span class="Validform_checktip">*只适用于加水印的jpeg格式图片.取值范围 0-100, 0质量最低, 100质量最高, 默认80</span>
            </dd>
        </dl>
        <dl>
            <dt>图片水印文件</dt>
            <dd>
                      @Html.TextBoxFor(model => model.watermarkpic, new { @class = "input txt ", datatype = "s2-100", sucmsg = " " })  
               
                <span class="Validform_checktip">*需存放在站点目录下，如图片不存在将使用文字水印</span>
            </dd>
        </dl>
        <dl>
            <dt>水印透明度</dt>
            <dd>
                  @Html.TextBoxFor(model => model.watermarktransparency, new { @class = "input small ", datatype = "n", sucmsg = " " })  
              
                <span class="Validform_checktip">*取值范围1--10 (10为不透明)</span>
            </dd>
        </dl>
        <dl>
            <dt>水印文字</dt>
            <dd>
                 @Html.TextBoxFor(model => model.watermarktext, new { @class = "input txt ", datatype = "s2-100", sucmsg = " " })  
             
                <span class="Validform_checktip">*文字水印的内容</span>
            </dd>
        </dl>
        <dl>
            <dt>文字字体</dt>
            <dd>
                <div class="rule-single-select"> 
                      @Html.DropDownListFor(model => model.watermarkfont, 
                      new[] { new SelectListItem() { Text = "Arial", Value = "Arial" }, 
                              new SelectListItem() { Text = "Arial Blac", Value = "Arial Blac" },
                              new SelectListItem() { Text = "Batang", Value = "Batang" },
                              new SelectListItem() { Text = "BatangChe", Value = "BatangChe" },
                              new SelectListItem() { Text = "Comic Sans MS", Value = "Comic Sans MS" },
                              new SelectListItem() { Text = "Courier New", Value = "Courier New" },
                              new SelectListItem() { Text = "Dotum", Value = "Dotum" },
                              new SelectListItem() { Text = "DotumChe", Value = "DotumChe" },
                              new SelectListItem() { Text = "Estrangelo Edessa", Value = "Estrangelo Edessa" },
                              new SelectListItem() { Text = "Franklin Gothic Medium", Value = "Franklin Gothic Medium" },
                              new SelectListItem() { Text = "Gautami", Value = "Gautami" },
                              new SelectListItem() { Text = "宋体", Value = "宋体" },
                              new SelectListItem() { Text = "仿宋_GB2312", Value = "仿宋_GB2312" },
                              new SelectListItem() { Text = "新宋体", Value = "新宋体" },
                              new SelectListItem() { Text = "楷体_GB2312", Value = "楷体_GB2312" },
                              new SelectListItem() { Text = "黑体", Value = "黑体" },
                              new SelectListItem() { Text = "Arial", Value = "Arial" }
                             }) 
                </div>
                 
                   @Html.TextBoxFor(model => model.watermarkfontsize, new { @class = "input small ", datatype = "n", sucmsg = " " })  
               
                px
      <span class="Validform_checktip">*文字水印的字体和大小 </span>
            </dd>
        </dl>
    </div>
    <!--/上传配置-->

    <!--/内容-->

    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-list">
            <input type="submit" value="提交保存"  class="btn"/>  
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
        </div>
        <div class="clear"></div>
    </div>
    <!--/工具栏-->
}